package com.example.userwallet.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * @Author:Nyapii
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class WalletRecord {

    private Long id; // 主键ID

    private Long userId; // 用户ID

    private Integer type; // 1:充值，2:消费，3:退款，4:提现

    private BigDecimal amount; // 金额

    private LocalDateTime createTime; // 创建时间
}
